package com.greenlife.converter;

import com.greenlife.model.User;
import com.greenlife.model.po.UserPo;

public class PoConverterModel {
	public static User userPoToUser(UserPo userPo) {
		User user = new User();
		user.setAccount(userPo.getAccount());
		user.setAddress(userPo.getAddress());
		user.setAvatar(userPo.getAvatar());
		user.setCoordinates(userPo.getCoordinates());
		user.setEmail(userPo.getEmail());
		user.setId(userPo.getId());
		user.setIntroduction(userPo.getIntroduction());
		user.setNickName(userPo.getNickName());
		user.setPhoneNumber(userPo.getPhoneNumber());
		user.setQqNumber(userPo.getQqNumber());
		user.setRealName(userPo.getRealName());
		user.setSex(userPo.getSex());
		user.setPassword(userPo.getNewPassword());
		return user;
	}
}
